import request from '@/utils/request'

export function getLogin(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
// 获取用户的基本信息(名称)
export function getUserInfo(token) {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

// 获取用户的详细信息(头像)
export function getUserInfoPicture(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}
export function logout() {

}
